package com.nanjia.boot.myflow.order.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.nanjia.boot.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 订单主实体对象
 *
 * @author 周洋
 * @since 2025-07-11 11:49
 */
@Getter
@Setter
@TableName("my_order")
public class Order extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    private String orderSn;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 订单总额
     */
    private BigDecimal totalAmount;

    /**
     * 状态
     */
    private Integer status;

    private String remark;

    /**
     * 目前只有一个：1：销售单
     */
    private Integer orderType;

    private Long parentId;

    private Long daf0Id;

    private Long daf1Id;
}
